#if !defined(AFX_PATHVIEW_H__33B3B79A_E69D_481C_A7F0_C422D81B00C4__INCLUDED_)
#define AFX_PATHVIEW_H__33B3B79A_E69D_481C_A7F0_C422D81B00C4__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PathView.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CPathView form view

#ifndef __AFXEXT_H__
#include <afxext.h>
#endif

#include "GStationDoc.h"
class CPathView : public CFormView
{
public:
	bool created;
	CPathView(); 
protected:          // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CPathView)

// Form Data
public:
	//{{AFX_DATA(CPathView)
	enum { IDD = IDD_FORMVIEW_Path };
	CListCtrl	m_lt;
	double	m_v2;
	double	m_v3;
	double	m_v4;
	double	m_v5;
	double	m_v6;
	double	m_v7;
	double	m_v8;
	CString	m_PathName;
	long	m_v1;
	//}}AFX_DATA

// Attributes
public:

	CGStationDoc * doc;
// Operations
public:
	double ComputeDirection(double target_x,double target_y,double x,double y,double old_dir);
	void ShowV();
	CGStationDoc * GetDocument();
	bool SendPathPoint(long serial);
	long pathpointsentstate;
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPathView)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate();
	virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CPathView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
	//{{AFX_MSG(CPathView)
	afx_msg void OnSelPath();
	afx_msg void OnClickList1(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnAddPoint();
	afx_msg void OnDeletePoint();
	afx_msg void OnSavePath();
	afx_msg void OnClearPathShow();
	afx_msg void OnSendPathpoints();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_PATHVIEW_H__33B3B79A_E69D_481C_A7F0_C422D81B00C4__INCLUDED_)
